package com.hns.can.service.vo;

import com.hns.tool.pub.PubUtil;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

/**
 * 电子围栏简单版用于通信Vo
 * @author:zhangzq
 * @email:
 * @version Revision 2.0.0
 */
public class ElectFencSimpleVo {
    private String    fencCd;//电子围栏编码
    private String    fencName;
    private String    fencType;//电子围栏形状（0 圆形  1多边形）
    private BigDecimal coreLgt;
    private BigDecimal    coreLtt;
    private BigDecimal    coreRadius;//电子围栏1半径（单位是米）
    private String driveDrc;//方向
    private List<ElectFencGpsSimpleVo> gpsList = new ArrayList<ElectFencGpsSimpleVo>();

    public String getFencCd() {
        return fencCd;
    }

    public void setFencCd(String fencCd) {
        this.fencCd = fencCd;
    }

    public String getFencName() {
        return fencName;
    }

    public void setFencName(String fencName) {
        this.fencName = fencName;
    }

    public String getFencType() {
        return fencType;
    }

    public void setFencType(String fencType) {
        this.fencType = fencType;
    }

    public BigDecimal getCoreLgt() {
        return coreLgt;
    }

    public void setCoreLgt(BigDecimal coreLgt) {
        this.coreLgt = coreLgt;
    }

    public BigDecimal getCoreLtt() {
        return coreLtt;
    }

    public void setCoreLtt(BigDecimal coreLtt) {
        this.coreLtt = coreLtt;
    }

    public BigDecimal getCoreRadius() {
        return coreRadius;
    }

    public void setCoreRadius(BigDecimal coreRadius) {
        this.coreRadius = coreRadius;
    }

    public String getDriveDrc() {
        if(PubUtil.isNotEmpty(driveDrc)){
            if(driveDrc.equals("FENC0001")){
                return "1";
            }
            else if(driveDrc.equals("FENC0002")){
                return "2";
            }
            else if(driveDrc.equals("FENC0003")){
                return "3";
            }
            return driveDrc;
        }
        return driveDrc;
    }

    public void setDriveDrc(String driveDrc) {
        this.driveDrc = driveDrc;
    }

    public List<ElectFencGpsSimpleVo> getGpsList() {
        return gpsList;
    }

    public void setGpsList(List<ElectFencGpsSimpleVo> gpsList) {
        this.gpsList = gpsList;
    }

}
